$("#top_nav").mouseover(function() {
    $(".droplist:first").css("display","block");
});
$("#top_nav").mouseout (function () {
    $(".droplist:first").mouseover(function () {
        $(this).css("display","block");
    });
    $(".droplist:first").mouseout(function () {
        $(this).css("display","none");
    });
    $(".droplist:first").css("display","none");
})

$("#zhzx_ul li").each(function () {
    $(this).click(function () {
        $("#zhzx_ul li").each(function () {
            $(this).css({"border-bottom-color":"transparent","color":"#555555"});
        });
        $(this).css({"border-bottom-color":"#8c6c2d","color":"#8c6c2d"});
    });
});

var i = 0;
var len = $("#lunbotu_ul li").length;
$("#lunbotu_ul li").each(function () {
    $(this).mouseover(function () {
        $("#lunbotu_ul li").each(function () {
            $(this).css({"background-color":"transparent","color":"#c8c8c8"});
        });
        i = $(this).index();
        $(this).css({"background-color":"#303030","color":"#e9c06c"});
        $(".lunbotu_img:first img").attr("src","./public/assets/images/" + ($(this).index()+1) + ".jpg");
    });
});

setInterval(function () {
    if (i==len) {
        $(".lunbotu_img:first img").attr("src","./public/assets/images/" + (i) + ".jpg");
        i=0;
    }else {
        $("#lunbotu_ul li").each(function () {
            $(this).css({"background-color":"transparent","color":"#c8c8c8"});
        });
        $("#lunbotu_ul li").eq(i).css({"background-color":"#303030","color":"#e9c06c"});
        $(".lunbotu_img:first img").attr("src","./public/assets/images/" + (++i) + ".jpg");
    }
},2000);

$("#zxzx_ul li").each(function () {
    $(this).mouseover(function () {
        $("#zxzx_ul li").each(function (){
            $(this).css({"border-bottom-color": "transparent","font-weight": "normal","color": "#666"});
        }); 
        $(this).css({"border-bottom-color": "#d1ab57","font-weight": "bold","color": "#d1ab57"});
    });
});
$("#zxzx_div .col-md-4").each(function () {
    $(this).mouseover(function () {
        $("#zxzx_div .col-md-4").each(function (){
            $(this).css({"border-bottom-color": "transparent","font-weight": "normal","color": "#666"});
        }); 
        $(this).css({"border-bottom-color": "#d1ab57","font-weight": "bold","color": "#d1ab57"});
    });
});
$("#zxtj_ul li").each(function () {
    $(this).mouseover(function () {
        $("#zxtj_ul li").each(function (){
            $(this).css({"border-bottom-color": "transparent","font-weight": "normal","color": "#666"});
        }); 
        $(this).css({"border-bottom-color": "#d1ab57","font-weight": "bold","color": "#d1ab57"});
    });
});